﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using VisionCloud.Utility;
using static VisionCloud.Core.Model.Ms.TaskPoints;

namespace VisionCloud.Domain.DtoModel.MiniApp
{
    /// <summary>
    /// 站点Dto
    /// </summary>
    public class TaskPointResolutionDto
    {
        /// <summary>
        /// 任务Id
        /// </summary>
        [Required]
        public Guid TaskId { get; set; }
        /// <summary>
        /// 站点序号
        /// </summary>
        [Required, Range(1, int.MaxValue, ErrorMessage = "YB0142")]
        public int PointIndex { get; set; }
        /// <summary>
        /// 站点分辨率：0:低、1:高，默认低分辨率
        /// </summary>
        public RateStatus Rate { get; set; } = RateStatus.低;
    }
}
